Netgear Orbi devices are split into router and satellite units. Even
though the hardware is mostly the same, the network configuration is
different. Router units have a designated WAN port while satellite units
have all available ports labeled as "Ethernet".
This splits the device trees into both unit types and adjusts the port
labels.
Signed-off-by: Christoph Krapp <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20877
Signed-off-by: Robert Marko <[email protected]>
buffalo,wtr-m2133hp|\
ezviz,cs-w3-wd1200g-eup|\
netgear,rbr40|\
- netgear,rbs40|\
netgear,rbr50|\
- netgear,rbs50|\
- netgear,srr60|\
- netgear,srs60)
+ netgear,srr60)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
;;
- avm,fritzbox-7530)
+ avm,fritzbox-7530|\
+ netgear,rbs40|\
+ netgear,rbs50|\
+ netgear,srs60)
ucidef_set_interface_lan "lan1 lan2 lan3 lan4"
;;
avm,fritzrepeater-3000|\
label_mac="$lan_mac"
;;
netgear,rbr50|\
- netgear,rbs50|\
netgear,srr60|\
- netgear,srs60|\
pakedge,wr-1)
wan_mac=$(macaddr_add $(get_mac_label) 1)
;;
--- /dev/null
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "qcom-ipq4019-orbi.dtsi"
+
+&swport1 {
+ status = "okay";
+
+ label = "wan";
+};
+
+&swport2 {
+ status = "okay";
+
+ label = "lan1";
+};
+
+&swport3 {
+ status = "okay";
+
+ label = "lan2";
+};
+
+&swport4 {
+ status = "okay";
+
+ label = "lan3";
+};
--- /dev/null
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "qcom-ipq4019-orbi.dtsi"
+
+&swport1 {
+ status = "okay";
+
+ label = "lan1";
+};
+
+&swport2 {
+ status = "okay";
+
+ label = "lan2";
+};
+
+&swport3 {
+ status = "okay";
+
+ label = "lan3";
+};
+
+&swport4 {
+ status = "okay";
+
+ label = "lan4";
+};
status = "okay";
};
-&swport1 {
- status = "okay";
-
- label = "wan";
-};
-
-&swport2 {
- status = "okay";
-
- label = "lan1";
-};
-
-&swport3 {
- status = "okay";
-
- label = "lan2";
-};
-
-&swport4 {
- status = "okay";
-
- label = "lan3";
-};
-
ðphy4 {
status = "disabled";
};
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-#include "qcom-ipq4019-orbi.dtsi"
+#include "qcom-ipq4019-orbi-router.dtsi"
/ {
model = "NETGEAR RBR40";
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-#include "qcom-ipq4019-orbi.dtsi"
+#include "qcom-ipq4019-orbi-router.dtsi"
/ {
model = "NETGEAR RBR50";
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-#include "qcom-ipq4019-orbi.dtsi"
+#include "qcom-ipq4019-orbi-satellite.dtsi"
/ {
model = "NETGEAR RBS40";
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-#include "qcom-ipq4019-orbi.dtsi"
+#include "qcom-ipq4019-orbi-satellite.dtsi"
/ {
model = "NETGEAR RBS50";
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-#include "qcom-ipq4019-orbi.dtsi"
+#include "qcom-ipq4019-orbi-router.dtsi"
/ {
model = "NETGEAR SRR60";
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-#include "qcom-ipq4019-orbi.dtsi"
+#include "qcom-ipq4019-orbi-satellite.dtsi"
/ {
model = "NETGEAR SRS60";